#include <stdio.h>
int main()
{
  int n,i;
  float sum=0.0,average=0.0,max=0.0,min=0.0;
  scanf("%d",&n);
  int  s[n];
  for(i=0;i<n;i++){
  	scanf("%d",&s[i]);
    sum=sum+s[i];
  }
   max=s[0],min=s[0];
  for(i=0;i<n;i++){
    if(max<s[i])
    max=s[i];
  }
  for(i=0;i<n;i++){
    if(min>s[i])
    min=s[i];
  }
  average=sum/n;
  printf("average = %.2f\n",average);
  printf("max = %.2f\n",max);
  printf("min = %.2f\n",min);
  return 0;
}
